<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>红包系统配置页面</title>
</head>

<style>
    * {
        margin: 0;
        padding: 0;
    }
    
    html,
    body {
        width: 100%;
        height: 100%;
    }
    
    body {
        display: none;
    }
    
    .box-logo {
        width: 100%;
        height: 30%;
        background: linear-gradient(50deg, #20cfee 0%, #046497 100%);
        text-align: center;
        padding-top: 5%;
    }
    
    .box-logo p {
        margin-top: 20px;
        color: white;
        font-size: 25px;
        padding: 5px;
        letter-spacing: 2px;
    }
    
    .box-logo span {
        color: white;
        display: inline-block;
        font-size: 15px;
        letter-spacing: 1px;
        padding-top: 10px;
    }
    
    .box-ps {
        width: 40%;
        margin-left: 29%;
        padding: 20px;
    }
    
    .box-ps div {
        width: 100%;
        padding: 10px 0;
        text-align: center;
        font-size: 18px;
    }
    
    .box-ps div span {
        float: left;
    }
    
    .box-ps div input {
        display: inline-block;
        float: right;
        width: 70%;
        padding: 2px;
        border: 0;
        border-bottom: 1px solid rgba(33, 33, 33, .4);
        background: transparent;
        outline: none;
    }
    
    .box-ps div input:hover {
        border-bottom: 1px solid #20cfee;
    }
    
    .box-ps .btn {
        width: 100%;
        background: transparent;
        border: 0;
        margin-top: 10px;
        background-color: #046497;
        color: white;
        padding: 5px;
        font-size: 24px;
        letter-spacing: 6px;
        border-radius: 5px;
    }
    /* 清除浮动 */
    
    .clear {
        clear: both;
    }
    
    @media screen and (max-width: 800px) {
        .box-ps {
            width: 90%;
            margin-left: 0;
            padding: 10px;
        }
        .box-ps div input {
            width: 50%;
        }
    }
</style>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
<script>
    $(function() {

        // 动画效果
        $("body").fadeToggle(1000, "swing");

    })
</script>

<body>
    <div class="box-logo">
        <p>红包配置系统</p>
        <span>H5答题红包程序，爱知识，爱这里！</span>
    </div>


    <?php require_once("config.php");  ?>

    <form class="box-ps" action="install.php" method="POST">
        <div>
            <span>数据库地址</span>
            <input type="text" value="<?php echo mysqlurl;?>" name="mysqlurl">
            <div class="clear"></div>
        </div>
        <div>
            <span>数据库用户名</span>
            <input type="text" value="<?php echo mysqluser;?>" name="mysqluser">
            <div class="clear"></div>
        </div>
        <div>
            <span>数据库密码</span>
            <input type="text" value="<?php echo mysqlpss;?>" name="mysqlpss">
            <div class="clear"></div>
        </div>
        <input class="btn" type="submit" value="提交">
    </form>
</body>

</html>